<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <ul id="ul">

    </ul>
    <script src="app.js"></script>
    <script>
        // 将数据显示在列表中
        let ul = document.getElementById("ul");
        ul.innerHTML = stu.list();
        // 增加数据 
        stu.add("李四");
        setTimeout(function(){
            ul.innerHTML = stu.list();
        },3000)
    </script>
</body>
</html>